/*
 * EnigmaGM - A feature rich guild management system.
 * Copyright (C) 2007 ajiaojr.
 * 
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
 * 02110-1301, USA.
 */
package org.ajiaojr.enigmagm.client.data;

import java.io.Serializable;

/**
 * Models item drops.
 * 
 * @author ajiaojr
 */
public class Item implements Serializable {
  /**
   * 
   */
  private static final long serialVersionUID = 2039771328957881393L;

  private int itemID;

  private String itemName;

  private String itemQuality;

  private int pointSystemId;

  private double value;

  /**
   * Default constructor.
   */
  public Item() {
  }

  /**
   * Constructs a new instance with more details.
   * 
   * @param itemID
   *          Item's unique identifier.
   * @param itemName
   *          The name of the item.
   * @param itemQuality
   *          The quality of the item.
   * @param pointSystemId
   *          The point system this item belongs to.
   * @param value
   *          Value of the item under the point system.
   */
  public Item(int itemID, String itemName, String itemQuality,
      int pointSystemId, double value) {
    this.itemID = itemID;
    this.itemName = itemName;
    this.itemQuality = itemQuality;
    this.pointSystemId = pointSystemId;
    this.value = value;
  }

  public int getItemID() {
    return itemID;
  }

  /**
   * Returns the name of the item.
   * 
   * @return The name of the item.
   */
  public String getItemName() {
    return itemName;
  }

  public String getItemQuality() {
    return itemQuality;
  }

  public int getPointSystemId() {
    return pointSystemId;
  }

  public double getValue() {
    return value;
  }

  public void setItemID(int itemId) {
    this.itemID = itemId;
  }

  /**
   * Sets the name of the item.
   * 
   * @param itemName
   *          Name of the item.
   */
  public void setItemName(String itemName) {
    this.itemName = itemName;
  }

  public void setItemQuality(String itemQuality) {
    this.itemQuality = itemQuality;
  }

  public void setPointSystemId(int pointSystemId) {
    this.pointSystemId = pointSystemId;
  }

  public void setValue(double value) {
    this.value = value;
  }
}
